package software;

import java.util.Iterator;

import softdata.Pos_data;
import softdone.Pos_done;
public class Pos_user extends Pos_done{
	private Pos_data postitem=new Pos_data();
	private Iterator iterator;
	public int ID_User=0;
	public void ReadPostList(int page){
		PostList_User(page,ID_User);
		iterator=Postplates.iterator();
	}
	public void NextPost(){
		if(iterator.hasNext()){
			postitem=(Pos_data)iterator.next();
		}
	}
	public int getSumPost_User(){
		return Num_User_Posts(ID_User);
	}
	public int getCurPost_User(){
		return Num_Pos_Plates;
	}
	public void setID_User(int s){
		ID_User=s;
	}
	public int getPost_ID(){
		return postitem.ID_Post;
	}
	public String getPost_Title(){
		return postitem.Title;
	}

	public int getPost_IDUser(){
		return postitem.ID_User;
	}
	public int getPost_NumReply(){
		return postitem.Num_Reply;
	}
	public int getPost_NumClicks(){
		return postitem.Num_Clicks;
	}
	public String getPost_TimLR(){
		return postitem.Tim_ReplyLast;
	}
	public String getPost_Username(){
		return postitem.Name_User;
	}
}
